package com.fz.us.admin.company.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by ZhuChunXiao on 2017/2/14.
 * 已办事项表
 */
@Entity
@Table(name="sys_taskrecord")
public class TaskRecord extends CompanyEntity {


    private static final long serialVersionUID = -7294884698792661537L;
    //文档id
    private String keyId;
    //所属的实体类名
    private String bussinessKey;
    //关联的用户
    private User user;
    //类型，1为未结，2为已结
    private int type;
    //所属模块
    private String module;


    @ManyToOne(fetch = FetchType.LAZY)
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getKeyId() {
        return keyId;
    }

    public void setKeyId(String keyId) {
        this.keyId = keyId;
    }

    public String getBussinessKey() {
        return bussinessKey;
    }

    public void setBussinessKey(String bussinessKey) {
        this.bussinessKey = bussinessKey;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }


}
